package org.example.controller;

import org.example.pojo.Resume;
import org.example.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：xjlonly
 * @date ：Created in 2021/4/6 16:58
 * @description：resume控制器
 * @modified By：
 * @version: 1.0$
 */
@RestController
@RequestMapping("/resume")
public class ResumeController {

    @Autowired
    private ResumeService resumeService;

    @GetMapping("/openstate/{userId}")
    public Integer findDefaultResumeState(@PathVariable Long userId){
//        try {
//            Thread.sleep(2222);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        return 100;
        // return resumeService.findDefaultByUserId(userId).getIsOpenResume();
    }
}
